<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div style="margin-top: 50px;">
    <span>验证码：</span><input type="text" name="verifyCode" id="verifyCode" style="width: 75px;height: 25px;"/>
    <img id="verifyCodeImg" alt="点击更换" src="${path}/getVerifyCodeImg"
         title="点击更换" onclick="change()">
</div>
</body>
<script>
    function change() {
        var verifyCode = document.getElementById("verifyCodeImg");
        verifyCode.src = "${path}/getVerifyCodeImg?time=" + Math.random(1000);
    }
</script>
</html>
